package com.rongx.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rongx.reggie.common.R;
import com.rongx.reggie.dto.DishDto;
import com.rongx.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);
    DishDto getByIdWithFlavor(Long id);
    void updateWithFlavor(DishDto dishDto);

    Page<DishDto> getPage(int page, int pageSize, String name);

    Dish updateStatus(Integer status, Long ids);

    void batchUpdateStatus(Integer status, String ids);
    
    List<DishDto> getList(Dish dish);

    R<String> deleteByIds(String ids);
}
